home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue66 / XMLXSLT / XSLT / XT / empus.xsl < prev    next >
Encoding:
Text File  |  2000-12-12  |  731 b   |  27 lines

  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0">
  2. <xsl:output omit-xml-declaration="yes" />
  3.   
  4.   <xsl:template match="employees">
  5.  
  6.   <HTML>
  7.   <BODY>
  8.   <H1>EMPLOYEE LISTING</H1><BR />
  9.     <TABLE>
  10.     <TR><TD>Employee number</TD><TD>Last Name</TD><TD>First Name</TD><TD>Currency</TD></TR>
  11.     <xsl:for-each select="employee">
  12.     
  13.     <xsl:if test="emp_salary[@currency = 'USD']">
  14.     <TR><TD><xsl:value-of select="@emp_no" /></TD>
  15.     <TD><xsl:value-of select="emp_lastname" /></TD>
  16.     <TD><xsl:value-of select="emp_firstname" /></TD>
  17.     <TD><xsl:value-of select="emp_salary/@currency" /></TD>
  18.     </TR>
  19.     </xsl:if>
  20.      </xsl:for-each>
  21.      </TABLE>
  22.  
  23.   </BODY>
  24.   </HTML>
  25.      
  26.   </xsl:template>
  27. </xsl:stylesheet>